import request from '@/utils/request'

// 场站列表
export function getPointEquipmentList(params){
  return request({
    url: '/system/point-equipment/list',
    method: 'post',
    data: params
  })
}

// 查询用户列表
export function getPointEquipmentDetail(id) {

  return request({
    url: '/system/point-equipment/detail?id='+id,
    method: 'get'
  })
}

export function updatePointEquipment(params){
  return request({
    url: '/system/point-equipment/update',
    method: 'post',
    data: params
  })
}

export function addPointEquipment(params){
  return request({
    url: '/system/point-equipment/add',
    method: 'post',
    data: params
  })
}

export function delPointEquipment(id){
  return request({
    url: '/system/point-equipment/del?id=' + id,
    method: 'get'
  })
}

export function batchDelPointEquipment(ids){
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/point-equipment/batchDel',
    method: 'post',
    data: params
  })
}


